<?php

use Biz\tools\MiniProgramCode;

class GetMiniProgramCodeAction extends ActionPlugin
{

    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $id = $this->getRequest()->getQuery('id');
        $type = $this->getRequest()->getQuery('type');
        $miniProgramCode = MiniProgramCode::getMiniProgramCode($type, $id, $this->uid);
        $this->setSuccess($miniProgramCode);
    }
}